package demo1.config.controller;

import demo1.config.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author quan
 * @Description 读取yml文件的对象
 * @Date 2023/7/19 18:29
 */
@Component
public class Demo3_ReadYmlObject {
    @Autowired
    private Student student;
    @PostConstruct
    public void postConstruct(){
        System.out.println(student);
    }
}
